<?php
/*****************************************************************
 * Fusion.Board
 *
 * @author                Denis Wrobel
 * @license               http://www.gnu.org/licenses/gpl-3.0.html
 * @version               0.1
 *
 *****************************************************************/


class PluginManager
{
    private $plugins = array(); //Plugins (active)
    
    
    public function run( $plugin_script_name )
    {
        if( file_exists( PLUGINS . $plugin_script_name . '.php' ) )
        {
            @require_once( PLUGINS . $plugin_script_name . '.php' );
            
            if( class_exists( $plugin_script_name ) )
            {
                $plugin_script_name->execute();
            }
        }
    }
}